﻿using RndMaterialDisposalService.Models.Entitys;
using RndMaterialDisposalService.Models.RequestModel;

namespace RndMaterialDisposalService.Services.Interface
{
    /// <summary>
    /// 
    /// </summary>
    public interface IWorkflowCommon
    {

        /// <summary>
        /// 
        /// </summary>
        Task<int> AddCCTask(List<ToReadDto> ccList);
        /// <summary>
        /// 
        /// </summary>
        /// <param name="procInstId"></param>
        /// <param name="ulr"></param>
        /// <returns></returns>
        Task<int> UpdataWorklistHeader(string procInstId,string ulr);
        /// <summary>
        /// 获取错误ID
        /// </summary>
        /// <param name="procInstId"></param>
        /// <returns></returns>
        Task<int> GetErrorID(int procInstId);
        /// <summary>
        /// 
        /// </summary>
        /// <param name="procInstId"></param>
        /// <returns></returns>
        Task<int> UpdataCurrentHandler(int procInstId);

        /// <summary>
        /// 发送邮件通知
        /// </summary>
        /// <param name="list"></param>
        /// <param name="emailHtml"></param>
        void EmailSending(List<EmailParameter> list,string emailHtml);
    }
}
